package 集合

fun main() {
    val list = listOf("John", "Jack", "Jason")
    /*for (s in list) {
        println(s)
    }*/
    list.forEach {
        println(it)
    }

    list.forEachIndexed { index, item ->
        println("$index,$item")
    }

    val (origin, _, proxy) = list
    println("$origin $proxy")
}